#ifndef ENEMY_H
#define ENEMY_H
#include <QString>
#include <QPixmap>

class Blood;
namespace EnemyType {
    const QString EnemyType1="Enemy1";
    const QString EnemyType2="Enemy2";
    const QString EnemyType3="Enemy3";
    const QString EnemyType4="Enemy4";
    const QString EnemyType5="Enemy5";
    const QString EnemyType6="Enemy6";
    const QString EnemyType7="Enemy7";
    const QString EnemyType8="Enemy8";
    const QString EnemyType9="Enemy9";
    const QString EnemyType10="Enemy10";
}

class enemy
{
protected:
    int x;
    int y;
    int width;
    int height;
    int life;
    int originalLife;
    int velocity;
    QRect _Rect;
    QString type;
    QPixmap _mPix;
    Blood* _object;
    bool IfDelete;
public:
    explicit enemy(int posX,int posY,const QString&);
    int GetX();
    int GetY();
    int GetWidth();
    int GetHeight();
    int Get_velocity();
    bool CheckPosition();
    void SetXY(int posX,int posY);
    int GetLife();
    void DeLife(int);
    void SetDelete();
    bool GetDelete();
    QString GetType();
    QPixmap& GetPix();
    QRect GetRect();
    void SetObject(Blood*);
    virtual ~enemy();
};

#endif // ENEMY_H
